Skip to main content

IERC165

Functions

supportsInterface

Query if a contract implements an interface

Interface identification is specified in ERC-165. This function uses less than 30,000 gas.

Declaration

  function supportsInterface(
bytes4 interfaceId
) external returns (bool)

Modifiers:

No modifiers

Args:

ArgTypeDescription
interfaceIdbytes4The interface identifier, as specified in ERC-165

Returns:

TypeDescription
ifthe contract implements interfaceID and

interfaceID is not 0xffffffff, false otherwise